package com.example.neusoft.widgettest307flb;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;

public class IntentActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_intent);
        TextView tv=(TextView)findViewById(R.id.textView);
        Intent intent=getIntent();
        String username=intent.getStringExtra("param");
        System.out.println(username);
        tv.setText(username);
    }
}
